﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mendel
{
    public class LinkedListStack<T> : LinkedList<T>
    {
        public T Pop()
        {
            T ret = this.Last();
            this.RemoveLast();
            return ret;
        }

        public void Push(T p)
        {
            this.AddLast(p);
        }
    }
}
